import LayoutMain from '@/components/layout/LayoutMain';
// 首页
const Home = () => import(/* webpackChunkName: "home" */ '@/views/app/home.vue');
// 其他页面
const Menu = () => import(/* webpackChunkName: "menu" */ '@/views/app/menu.vue');

const prefix = 'app';
const module = 'app';
export default [
  {
    path: '/',
    component: LayoutMain,
    meta: {
      title: '首页',
    },
    children: [
      {
        path: 'home',
        name: `${module}.Home`,
        component: Home,
        meta: {
          title: '首页',
        },
      },
    ],
  },
  {
    path: `/${prefix}/`,
    component: LayoutMain,
    meta: {
      title: '',
    },
    children: [
      {
        path: 'menu',
        name: `${module}.Menu`,
        component: Menu,
        meta: {
          title: '',
        },
      },
    ],
  },
];
